#include "stc12c5a60s2.h"
#include "intrins.h"

void DelayMs(unsigned int ms)		//@12.000MHz
{
	unsigned char i, j;
     while(ms--)
	 {
		_nop_();
		_nop_();
		i = 12;
		j = 168;
		do
		{
			while (--j);
		} while (--i);	 
	 
	 }

}

void Delay2Us(unsigned int us)		//@12.000MHz
{
	unsigned char i;
	while(us--)
	{
		i = 3;
		while (--i);	
	}


}

